import SockJS from 'sockjs-client';

const socketPlugin = {
  install(Vue, options) {
    // 将SockJS添加到Vue原型中
    Vue.prototype.$sock = new SockJS(options.url);
  },
};

export default socketPlugin;
